﻿var alertFun = window.alert;
window.alert = function (str) {
    try {
        if (str.indexOf("www.miniui.com") == -1) {
            alertFun(str);
        }
    } catch (Exception) {
        alertFun(str);
    }
};

function ShowMessage(title, msg, type) {
    var icon = "mini-messagebox-info";
    if (type == 2)
        icon = "mini-messagebox-warning";
    else if (type == 3)
        icon = "mini-messagebox-error";

    mini.showMessageBox({
    //        width: 250,
        title: title,
        buttons: ["ok"],
        message: msg,
        iconCls: icon
    });
}